<#include "/WEB-INF/admin/app/common/_public.html" />
<div class="bjui-pageHeader" style="background:#FFF;">
    <div class="office">
        <ul class="offbtn">
            <li> <a id="user_edit_save" data-toggle="submitform" data-id="user_navtab_add" >
                <span><i class="fa fa-save"></i></span>保存</a>
            </li>
            <li> <a id="user_refresh" data-toggle="reloadsearch" data-target="#bjui-pageContent" >
                <span><i class="fa fa-refresh"></i></span>刷新</a>
            </li>
        </ul>
    </div>
</div>
<div class="bjui-pageContent">
    <form action="${ctx }/security/org/save" id="j_custom_form" data-toggle="validate" data-alertmsg="true" data-isrefsh="false">
        <div style="margin:15px auto 0; width:800px;">
            <fieldset>
                <legend>
                    <h3 class="listtitle">组织机构</h3>
                    <input type="hidden" name="user.id" value="${org.id!}"/>
                </legend>
                <table class="table table-condensed" width="100%">
                    <tbody>
                    <tr>
                        <td class="td_table_1">
                            <span>部门名称：</span>
                        </td>
                        <td class="td_table_2" colspan="3">
                            <input type="text" class="input_240" id="name" name="org.name"
                                   value="${org.name!}" />
                        </td>
                    </tr>
                    <tr>
                        <td class="td_table_1">
                            <span>上级部门：</span>
                        </td>
                        <td class="td_table_2" colspan="3">
                            <input type="hidden" id="parentOrgId" name="org.parent_org" value="${org.parentId!}">
                            <input type="text" id="parentOrgName" readonly="readonly" name="parentOrgName" class="input_240" value="${org.parentName }">
                            <input type='button' class='button_70px' value='上级部门' id="selectOrgBtn" onclick="openOrg()"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="td_table_1">
                            <span>部门描述：</span>
                        </td>
                        <td class="td_table_2" colspan="3">
                            <input type="text" class="input_520" id="description" name="org.description"
                                   value="${org.description! }">
                        </td>
                    </tr>
                </table>
            </fieldset>


        </div>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close closecutab" data-icon="close">关闭</button>
        </li>
        <li>
            <button type="submit" class="btn-default" data-icon="save">保存</button>
        </li>
    </ul>
</div>
